package com.ckr.demo01;

/**
 * @author Shadowckr
 * @create 2021-12-02 16:30
 */
public class Proxy implements RentHouse {
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    public void rentHouse() {
        seeHouse();
        host.rentHouse();
        contract();
        tip();
    }

    // 看房
    public void seeHouse() {
        System.out.println("中介带你看房！");
    }

    // 签合同
    public void contract() {
        System.out.println("签租赁合同！");
    }

    // 收中介费
    public void tip() {
        System.out.println("收中介费！");
    }

}
